import request from '@/utils/request'

// 查询冲回全勤奖列表
export function listChqqj(query) {
  return request({
    url: '/basebill/chqqj/list',
    method: 'get',
    params: query
  })
}

// 查询冲回全勤奖详细
export function getChqqj(fid) {
  return request({
    url: '/basebill/chqqj/' + fid,
    method: 'get'
  })
}

// 新增冲回全勤奖
export function addChqqj(data) {
  return request({
    url: '/basebill/chqqj',
    method: 'post',
    data: data
  })
}

// 修改冲回全勤奖
export function updateChqqj(data) {
  return request({
    url: '/basebill/chqqj',
    method: 'put',
    data: data
  })
}

// 删除冲回全勤奖
export function delChqqj(fid) {
  return request({
    url: '/basebill/chqqj/' + fid,
    method: 'delete'
  })
}

// 调用eas接口
export function importQqjch(fids) {
  return request({
    url: '/basebill/chqqj/importQqjch/' + fids,
    method: 'get'
  })
}
